


// var options = {"displayMode":true,"leqno":false,"fleqn":false,"throwOnError":true,"errorColor":"#cc0000","strict":"warn","output":"htmlAndMathml","trust":false,"macros":{"\\f":"#1f(#2)"}}


document$.subscribe(() => {
  console.log('document.body=', JSON.stringify(document.body)   );

  renderMathInElement(document.body, {
    // customised options
    // • auto-render specific keys, e.g.:
    delimiters: [
        //{left: '$$', right: '$$', display: false},
        {left: '$$', right: '$$', display: true},
        {left: '$', right: '$', display: false},
        {left: '\\(', right: '\\)', display: false},
        {left: '\\[', right: '\\]', display: true}
    ],
    displayMode: true,
    macros: {"\\f": "#1f(#2)"}  ,

    trust: false,
    strict: "warn",

    // • rendering keys, e.g.:
    throwOnError : true
  });
})
